import request from '@/util/request'

export function addUser(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data
  })
}



export function editRole(data) {
  return request({
    url: '/role/eidt',
    method: 'put',
    data
  })
}


export function searchUsers() {
  return request({
    url: '/role/selectAll',
    method: 'get'
  })
}

export function deleteUserRestfull(id) {
             return request({
                  url: `/role/delete/${id}`,
                   method: 'delete',   
                    })
                  }
